package democlone;

public class Tect {
    public static void main(String[] args) throws CloneNotSupportedException {
        Peopro peopro1 = new Peopro(1,"zangsan");
        Peopro peopro2 = (Peopro) peopro1.clone();
        IdComparator idComparator = new IdComparator();
        System.out.println(idComparator.compare(peopro1, peopro2));
        NameComparator nameComparator = new NameComparator();
        System.out.println(nameComparator.compare(peopro1, peopro2));
    }
}
